﻿using HYHY_Core.Entities.Utils;

namespace HYHY_Core.Entities.User
{
    /// <summary>
    /// 账号管理实体
    /// </summary>
    public class Account : BaseEntities
    {
        /// <summary>
        /// 账号管理guid
        /// </summary>
        public string AId { get; set; }

        /// <summary>
        /// 账号
        /// </summary>
        public string AccountNumber { get; set; }

        /// <summary>
        /// 用户id
        /// </summary>
        public string UserId { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 未加密密码
        /// </summary>
        public string UnencryptedPad { get; set; }

        /// <summary>
        /// 电话号码
        /// </summary>
        public string Phone { get; set; }

        /// <summary>
        /// 用户类型：
        /// Platform：平台，
        /// Merchant：商家
        /// </summary>
        public string UserType { get; set; }

        /// <summary>
        /// 上一次登录时间
        /// </summary>
        public DateTime? LastLoginTime { get; set; }

        /// <summary>
        /// 登录次数
        /// </summary>
        public int LoginCount { get; set; }

        /// <summary>
        /// 密码修改时间
        /// </summary>
        public DateTime PasswordUpdateTime { get; set; }

        /// <summary>
        /// 密码修改人
        /// </summary>
        public string PasswordUPdateMan { get; set; }
    }
}
